package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.OrderDetailBean;
import com.project.bean.ShoppingCartBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IOrderDetailMapper extends BaseMapper<OrderDetailBean> {
    /**
     * 批量添加订单明细
     * @param orderId 订单id
     * @param shopList 购物车集合
     */
    void addDetails(@Param("orderId") Integer orderId, @Param("shopList") List<ShoppingCartBean> shopList);
}
